package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 运行报告数据表
 * </p>
 *
 * @Author: mby
 * @Date: 2024/3/11 09:30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_running_report_data")
@ApiModel(value="RunningReport对象", description="运行报告数据表")
public class RunningReportData extends BaseEntity {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "报告id")
    @TableField("report_id")
    private Integer reportId;

    @ApiModelProperty(value = "设备号")
    @TableField("imei")
    private String imei;

    @ApiModelProperty(value = "报警地点")
    @TableField("alarm_address")
    private String alarmAddress;

    @ApiModelProperty(value = "报警时间")
    @TableField("alarm_time")
    private Date alarmTime;

    @ApiModelProperty(value = "报警类别 0:报警 1:故障 2:离线")
    @TableField("alarm_type")
    private Integer alarmType;

    @ApiModelProperty(value = "浓度值")
    @TableField("concentration")
    private Integer concentration;

    @ApiModelProperty(value = "故障原因")
    @TableField("valve_broken_info")
    private String valveBrokenInfo;

    @ApiModelProperty(value = "离线时长")
    @TableField("offline_time")
    private Long offlineTime;

    @ApiModelProperty(value = "跨月持续离线 0-否 1-是")
    @TableField("offline_extend")
    private Integer offlineExtend;

    @ApiModelProperty(value = "处理时间")
    @TableField("appeal_time")
    private Date appealTime;

    @ApiModelProperty(value = "处理状态：0待处理 1处理中 2已处理")
    @TableField("appeal_status")
    private Integer appealStatus;

    @TableField(exist = false)
    private Integer number;

}
